package com.winsdom.dto;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiOperation(value = "FormulaDTO")
public class FormulaDTO {
    @ApiModelProperty(value = "公式类型", notes = "公式类型: 1-周期, 2-三表, 3-临时, 4-保证金, 5-预存")
    private Long type;
    @Schema(name = "页号")
    @NotNull(message = "页号不能为空")
    @Min(value = 1 ,message = "页号必须大于等于1")
    private Integer pageNum;
    @Schema(name = "每页大小")
    @NotNull(message = "每页大小不能为空")
    @Min(value = 1,message = "每页大小必须大于等于1")
    private Integer pageSize;
}
